package io.renren.modules.pms.service.impl;

import io.renren.modules.pms.dao.GoodsStockDao;
import io.renren.modules.pms.dao.GoodsStockRecordDao;
import io.renren.modules.pms.service.GoodsExpiredService;
import io.renren.modules.pms.vo.GoodsExpiredVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author JinYang
 * @version 1.0
 * @belongsProject supermarket-management-system
 * @belongsPackage io.renren.modules.pms.service.impl
 * @createTime 2024-08-16  10:55
 * @description TODO
 */
@Service
public class GoodsExpiredServiceImpl implements GoodsExpiredService {

    @Resource
    private GoodsStockRecordDao goodsStockRecordDao;

    @Resource
    private GoodsStockDao goodsStockDao;


    /**
     *  获取临期商品统计信息
     * @return {@link GoodsExpiredVO}
     */
    @Override
    public GoodsExpiredVO getExpired() {
//        得到商品的总数和总金额
        GoodsExpiredVO goodsExpiredVO =  goodsStockDao.selectStock();

        return null;
    }
}
